package io.bdmc.modules.bss.service.impl;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceRouteGroup;
import io.bdmc.modules.bss.mapper.DeviceRouteGroupMapper;
import io.bdmc.modules.bss.service.IDeviceRouteGroupService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 路由组 服务实现类
 * </p>
 *
 * @author 黄露
 * @since 2021-05-21
 */
@Service
public class DeviceRouteGroupServiceImpl extends ServiceImpl<DeviceRouteGroupMapper, DeviceRouteGroup>
        implements IDeviceRouteGroupService {
    @Autowired
    DeviceRouteGroupMapper _deviceroutegroupMapper;

    @Override
    public MyPage<DeviceRouteGroup> mySelectPage(MyPage<DeviceRouteGroup> myPage) {
        return _deviceroutegroupMapper.mySelectPage(myPage);
    }

    @Override
    public List<HashMap<String, Object>> routeTree(int deptId) {
        return _deviceroutegroupMapper.routeTree(deptId);
    }
}
